package com.android.baseconfig.data.http.okhttp.api;

import com.android.baseconfig.base.BaseApiResult;
import com.android.baseconfig.base.BaseRetrofit;

import retrofit2.Call;

/**
 * ---------------------------------------------------------------- <br>
 * Copyright (C) 2014-2021, by het, ShenZhen, All rights reserved.  <br>
 * ---------------------------------------------------------------- <br>
 * <p>
 * 描述: ApiImpl <br>
 * 作者: lei <br>
 * 日期: 2021/12/26 <br>
 */
public class ApiImpl extends BaseRetrofit<ApiService> implements ApiService {
    private static ApiImpl instance;

    public static ApiImpl getInstance() {
        if (instance == null) {
            instance = new ApiImpl();
        }
        return instance;
    }

    @Override
    public Call<BaseApiResult<String>> getToken(String token) {
        return api.getToken(token);
    }
}
